<template>
  <div>
    <div class="search-box">
      <div class="search-bar">
        <span>图片</span>
        <form action="." class="search-bar_form">
          <div class="search-bar_box">
            <i>fsa</i>
            <input type="text" value="苹果">
          </div>
        </form>
      </div>
    </div>
  </div>
</template>
<script>
  export default{

  }
</script>
<style>

  .search-box{
    width: 100%;
  }
  .search-bar {
    position: relative;
    padding: 8px 5px 8px 50px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    box-sizing: border-box;
    background-color: #EFEFF4;
  }
  .search-bar span{
    position: absolute;
    top: 10px;
    left:10px;
  }
  .search-bar_form {
    position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: auto;
    flex: auto;
    background-color: #EFEFF4;
  }
  .search-bar_box {
    position: relative;
    padding-left: 20px;
    padding-right: 30px;
    height: 35px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    background-color:#fff;
    border-radius: 50px;
    overflow: hidden;
  }
  .search-bar_box i{
    position: relative;
    top:2px;
    font-style: normal;
  }
  .search-bar_box input{
    border:0;
    outline:none;
    width: 100%;
    height: 100%;
    position: absolute;
    top:-3px;
  }
</style>
